using SimpleJSON;
using UnityEngine;
using UnityEngine.UI;

namespace Gj
{
    public class ScaleHelper : NodeHelper
    {
        public int min;
        public int max;

        protected override BindDataType bindDataType => BindDataType.Float;

        protected override void BindData(float i)
        {
            if (i < min) i = min;
            if (i > max) i = max;
            transform.localScale = new Vector3(i, i, i);
        }
    }
}